﻿using System;
using System.Collections.Generic;

namespace DBHelper
{
    /// <summary>
    /// 字典表
    /// </summary>
    public class Dictionary
    {
        public Dictionary()
        {
            Entries = new List<DictionaryEntries>();
        }
        /// <summary>
        /// Zdid
        /// </summary>
        public virtual Guid ZdId
        {
            get;
            set;
        }
        /// <summary>
        /// Zdmc
        /// </summary>
        public virtual string Zdmc
        {
            get;
            set;
        }
        /// <summary>
        /// Bz
        /// </summary>
        public virtual string Remark
        {
            get;
            set;
        }
        /// <summary>
        /// 字典项集合
        /// </summary>
        public IList<DictionaryEntries> Entries { get; set; }
    }
    /// <summary>
    /// 字典项表
    /// </summary>
    [Table(Name = "Sys_Zdx")]
    public class DictionaryEntries
    {
        /// <summary>
        /// Zdxid
        /// </summary>
        [Id]
        public virtual Guid Id
        {
            get;
            set;
        }
        /// <summary>
        /// Zdid
        /// </summary>
        public virtual Guid Zdid
        {
            get;
            set;
        }
        /// <summary>
        /// Parentid
        /// </summary>
        public virtual Guid Parentid
        {
            get;
            set;
        }
        /// <summary>
        /// Zdxmc
        /// </summary>
        public virtual string Zdxmc
        {
            get;
            set;
        }
        /// <summary>
        /// Bz
        /// </summary>
        public virtual string Remark
        {
            get;
            set;
        }
        /// <summary>
        /// Xh
        /// </summary>
        public virtual int? Sort
        {
            get;
            set;
        }
        /// <summary>
        /// 下级菜单
        /// </summary>
        [Ignore]
        public List<DictionaryEntries> ChildList { get; set; }
    }


    /// <summary>
    /// 行政区划表
    /// </summary>
    [Table(Name = "Sys_Xzqh")]
    public class XzqhEntries
    {

        /// <summary>
        /// Xzqhdm
        /// </summary>
        [Id]//, Column(Name = "Xzqhdm")
        public virtual string Id
        {
            get;
            set;
        }
        /// <summary>
        /// Parentid
        /// </summary>
        public virtual string Sjdm
        {
            get;
            set;
        }
        /// <summary>
        /// Zdxmc
        /// </summary>
        public virtual string Xzqhmc
        {
            get;
            set;
        }
        public virtual string Xzqhdj
        {
            get;
            set;
        }
        /// <summary>
        /// Xh
        /// </summary>
        public virtual int? Sort
        {
            get;
            set;
        }
        /// <summary>
        /// 下级区划
        /// </summary>
        [Ignore]
        public List<XzqhEntries> ChildList { get; set; }
    }
}
